import request from '@/utils/request'

const register = {
  list(params) {
    return request.get('/bzh/standard/list',{params});
  },
  myList(params){
    return request.get('/bzh/standard/myList',{params});
  },
  add(data){
    return request.post('/bzh/standard/add', data);
  },
  addOnStandardMy(data){
    return request.post('/bzh/standard/add', data);
  },
  get(id){
    return request.get(`/bzh/standard/detail/${id}`);
  },
  getByLocalId(id){
    return request.get(`/bzh/standard/getByLocalId/${id}`);
  },
  update(data){
    return request.post('/bzh/standard/update', data);
  },
  delete(id){
    return request.post(`/bzh/standard/delete/${id}`)
  },
  submit(data){
    return request.post('/bzh/standard/submit', data);
  },
  submitOnStandardMy(data){
    return request.post('/bzh/standard/submit', data);
  },
  addHistory(data){
    return request.post('/bzh/standard/addHistory', data);
  },
  addHistoryOnStandardMy(data){
    return request.post('/bzh/standard/addHistory', data);
  },
  updateHistory(data){
    return request.post('/bzh/standard/updateHistory', data);
  },
  submitHistory(data){
    return request.post('/bzh/standard/submitHistory', data);
  },
  submitHistoryOnStandardMy(data){
    return request.post('/bzh/standard/submitHistory', data);
  },
  myWaitSignList(params){
    return request.get('/bzh/standard/myWaitSignList',{params});
  },
}

export default register;
